@import 'styles/settings';
@import 'styles/typography-extends';
@import 'styles/ui.module';
@import 'styles/common-animations.module';

$section-padding: 0 24px;

.cardContainer {
  display: none;
  @include backdropBlur();
  
  flex-direction: column;
  width: $sidebar-width;
  height: auto;
  border-radius: 2px;
  background-color: $brand-color-secondary;
  @include animationFunction();

  @media #{$tablet-portrait} {
    display: flex;
  }
}

.delayOnOut {
  @include animationFunction($delay: 200ms);
}

.titleSection {
  padding: $section-padding;
  background-repeat: no-repeat;
  background-size: cover;
  height: 170px;
}

.descriptionSection {
  display: flex;
  flex-direction: column;
  padding: $section-padding;
}

.title {
  @extend %headline;
  color: $white;
  margin-top: 54px;
  margin-bottom: 0;
}

.shareButton {
  position: absolute;
  top: 13px;
  right: 13px;
}

.description {
  @extend %bodyText;
  color: white;
}

.allMapsButton {
  position: relative;
  bottom: 24px;
  margin-top: 20px;
  align-self: flex-end;

  .buttonText {
    @extend %subtitle;
    color: $white;
  }
  
  .arrowIcon {
    fill: $white;
    position: relative;
    top: 3px;
    left: 10px;
  }
}